#include<bits/stdc++.h>

using namespace std;

int main() {
    int a[10];
    //i from 0 to 9 step +1
    for (int i = 0; i < 10; ++i)
        cin >> a[i];


    //i from 9 downto 0 step -1
    for (int i = 9; i >= 0; --i)
        cout << a[i] << endl;


    return 0;
}
